package com.lpit.controller;

import com.lpit.dto.UserAndTableTheBehaviorDto;
import com.lpit.pojo.Article;
import com.lpit.result.ResponseResult;

/**
 * 用户对文章的收藏行为
 * @author Administrator
 */
public interface CollectControllerApi {
    /**
     * 用户对文章收藏
     *
     * @param userAndTableTheBehaviorDto
     * @return ResponseResult<Integer>
     */
    public ResponseResult<Integer> collect(UserAndTableTheBehaviorDto userAndTableTheBehaviorDto);

    /*查看收藏内容*/
    public ResponseResult<Article> getCollect(Integer userId);

    /*删除收藏内容*/
    public ResponseResult<Integer> delCollect(UserAndTableTheBehaviorDto userAndTableTheBehaviorDto);
}
